package com.woniuxy.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.apache.ibatis.annotations.Select;

import java.math.BigDecimal;

//商铺评价视图的实体类
@Setter
@Getter
@ToString
@TableName("v_review")
public class VReview {
    //商铺id
    @TableField("shopId")
    private int shopId;
    //评论用户姓名
    @TableField("userName")
    private String userName;
    //评论的菜品id
    @TableField("dishId")
    private int dishId;
    //评论的菜品名
    @TableField("dishName")
    private String dishName;
    //评论内容
    private String comment;
    //订单生成时间
    @TableField("orderTime")
    private String orderTime;
    //订单商品数量
    @TableField("dishNum")
    private int dishNum;
    //订单总价
    @TableField("totalPrice")
    private BigDecimal totalPrice;
}
